package com.recursiveflow.openplatform.view 
{
	import com.guardian.apis.content.model.SearchQuery;
    import flash.events.Event;

    /**
     * Event flagging changes to the search history.  
     * 
     * @author Alastair Dant / Recursive Flow / 2009
     */
    public class SearchHistoryEvent extends Event 
    {
        public static const REVERT : String = "REVERT";

        private var query : SearchQuery;

        public function SearchHistoryEvent(type : String, query : SearchQuery)
        {
            super(type, false, false);
            
            this.query = query;
        }
        
        public function getTargetQuery() : SearchQuery
        {
            return query;
        }
    }
}
